package com.yuyou.train.lesson.vo.req;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


/**
 * @author 
 */
public class ReqResExamAdd{

	@ApiModelProperty(value = "试卷类型", required = true)
	@NotBlank(message="试卷类型(dataExamType)不能为空")
    private String dataExamType;

	@ApiModelProperty(value = "试卷名称", required = true)
	@NotBlank(message="试卷名称(name)不能为空")
	@Length(max = 40, message = "试卷名称最多40字")
    private String name;

	@ApiModelProperty(value = "试卷总分", required = true)
	@NotNull(message="题目数(num)不能为空")
	@Min(value = 0,message = "试卷总分(num)必须在范围[0,100]")
	@Max(value = 100,message = "试卷总分(num)必须在范围[0,100]")
    private Integer score;

	@ApiModelProperty(value = "题目数", required = true)
	@Min(value = 0,message = "题目数(num)必须大于0")
	@NotNull(message="题目数(num)不能为空")
	private Integer num;

	@ApiModelProperty(value = "限时（秒）", required = true)
	@Min(value = 0,message = "限时（秒）(seconds)必须大于0")
	@NotNull(message="限时（秒）(seconds)不能为空")
    private Integer seconds;

	@ApiModelProperty(value = "描述", required = false)
    private String describes;

	@ApiModelProperty(value = "要求", required = false)
    private String requirement;

	public String getDataExamType() {
		return dataExamType;
	}

	public void setDataExamType(String dataExamType) {
		this.dataExamType = dataExamType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getSeconds() {
		return seconds;
	}

	public void setSeconds(Integer seconds) {
		this.seconds = seconds;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public String getRequirement() {
		return requirement;
	}

	public void setRequirement(String requirement) {
		this.requirement = requirement;
	}




    
    
    
}